package com.subaiwang.pojo;

import javax.persistence.*;

@Entity
@Table(name = "tool_platform", schema = "subaiwang", catalog = "")
public class ToolPlatform {
    private long id;
    private String content;
    private String contentlink;
    private Long type;
    private String idValue;
    private String classValue;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "contentlink")
    public String getContentlink() {
        return contentlink;
    }

    public void setContentlink(String contentlink) {
        this.contentlink = contentlink;
    }

    @Basic
    @Column(name = "type")
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Basic
    @Column(name = "idValue")
    public String getIdValue() {
        return idValue;
    }

    public void setIdValue(String idValue) {
        this.idValue = idValue;
    }

    @Basic
    @Column(name = "classValue")
    public String getClassValue() {
        return classValue;
    }

    public void setClassValue(String classValue) {
        this.classValue = classValue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ToolPlatform that = (ToolPlatform) o;

        if (id != that.id) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (contentlink != null ? !contentlink.equals(that.contentlink) : that.contentlink != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (idValue != null ? !idValue.equals(that.idValue) : that.idValue != null) return false;
        if (classValue != null ? !classValue.equals(that.classValue) : that.classValue != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (contentlink != null ? contentlink.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (idValue != null ? idValue.hashCode() : 0);
        result = 31 * result + (classValue != null ? classValue.hashCode() : 0);
        return result;
    }
}
